package com.cheetah.start.common.task;


import com.cheetah.start.module.monitor.service.impl.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class SystemTask {

    @Autowired
    private SystemService systemService;


    @Scheduled(cron = "0 */20 * * * ?")
    public void systemUseInfo() {
        systemService.monitor();
    }
}
